package com.lavida.project.system.papers.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lavida.project.system.papers.domain.Papers;
import com.lavida.project.system.papers.mapper.PapersMapper;
@Service
public class PapersServicesImpl implements PapersService{
	@Autowired
	private PapersMapper papersMapper;
	@Override
	public List<Papers> selectPapers(Papers paper) {
		// TODO Auto-generated method stub
		return papersMapper.selectPapers(paper);
	}
	@Override
	public void insertPapers(Papers papers) {
		// TODO Auto-generated method stub
		papersMapper.insertPapers(papers);
	}
	@Override
	public void deletePapers(int[] ids) {
		// TODO Auto-generated method stub
		for (int i = 0; i < ids.length; i++) {
			papersMapper.deletePapers(ids[i]);
		}
	}
	@Override
	public Papers getPapers(int id) {
		// TODO Auto-generated method stub
		
		return papersMapper.getPapers(id);
	}
	@Override
	public void updatePapers(Papers papers) {
		// TODO Auto-generated method stub
		papersMapper.updatePapers(papers);
	}
}
